﻿<%@ Page Language="C#" MasterPageFile="~/MainPage.master" AutoEventWireup="true" CodeFile="Galeria.aspx.cs" Inherits="Galeria" Title="Galeria" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"><asp:SqlDataSource ID="GaleriesDataSource" runat="server" connectionstring="<%$ ConnectionStrings:ZALSConnectionString %>" selectcommand="SELECT * FROM [ZDJECIA]" /> 
    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/GalerieUzytkownikow.aspx">Wszystkie Galerie</asp:HyperLink><br />
    <asp:Label ID="ResultLabel" runat="server" Text="Label"></asp:Label>
    <asp:GridView ID="GaleriaGridView" runat="server" AutoGenerateColumns="False"
        CellPadding="4" ForeColor="#333333" GridLines="None" Height="28px" 
            Width="533px" DataSourceID="GaleriesDataSource" 
            HorizontalAlign="Center" OnPreRender="GaleriaGridView_PreRender">
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />

<Columns>
    <asp:BoundField DataField="nazwa" HeaderText="nazwa" SortExpression="nazwa" />
    <asp:HyperLinkField DataNavigateUrlFields="id_zdjecia" DataNavigateUrlFormatString="Zdjecie.aspx?pic={0}"
                HeaderText="Otw&#243;rz" Text="[ otw&#243;rz ]" />
    <asp:HyperLinkField DataNavigateUrlFields="id_zdjecia" DataNavigateUrlFormatString="usuwGalerii.aspx?zdjId={0}"
                HeaderText="Usuń" Text="[ usuń zdjecie ]" />
</Columns>

<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />

<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />

<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />

<EditRowStyle BackColor="#2461BF" />

<AlternatingRowStyle BackColor="White" />
</asp:GridView>&nbsp;<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/GalerieUzytkownikow.aspx">Wszystkie Galerie</asp:HyperLink>
</asp:Content>

